#include "mainwindow.h"
#include <QTranslator>
#include <QApplication>
#include <QDebug>
#include <QSettings>
#include "tlr.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    TLR::get()->init();
    //多语言
    QTranslator translator;
    if(TLR::get()->m_language == "EN") {
        translator.load(QApplication::applicationDirPath() + "/lang_English.qm");
        a.installTranslator(&translator);
    }

    MainWindow w;
    w.show();
    return a.exec();
}
